import request from '@/utils/request'

export function getActivityList(processInstanceId) {
  return request({
    url: '/activity/history-list?processInstanceId=' + processInstanceId,
    method: 'get'
  })
}

export function getBpmViewerActivity(processInstanceId) {
  return request({
    url: '/activity/get-viewer-activity?processInstanceId=' + processInstanceId,
    method: 'get'
  })
}

export function getRunActivityList(processInstanceId) {
  return request({
    url: '/activity/get-run-activities/' + processInstanceId,
    method: 'get'
  })
}
